// import { applyMiddleware,combineReducers,createStore } from 'redux';
// import thunk from 'redux-thunk';
// import adminReducer from './adminReducer';
// import userReducer from './userReducer';

// export default createStore(
//   combineReducers({ userReducer, adminReducer }),
//   applyMiddleware(thunk),
// );

import { configureStore } from '@reduxjs/toolkit';
// 引入主题换肤store分库
import themeReducer from './ThemeReducer';

const store = configureStore({
  reducer: {
    // 主题换肤store分库
    theme: themeReducer,
    // 可以根据需要在这里继续追加其他分库
  },
});

export default store;
